package c2.advanced.business.help.adventure;

import c2.advanced.business.base.AdvancedDaoTemplate;
import c2.advanced.share.DbFacade;
import c2.cross.business.help.adventure.CrossAdventureData;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("跨服同布主线阵容DAO")
public class CrossAdventureDao extends AdvancedDaoTemplate {
    @NoteField("DB文档名")
    public static final String COLLECTION = "cross-adventure";

    public CrossAdventureDao(DbFacade root) {
        super(root);
    }

    public CrossAdventureData get(String uid) {
        return mongo().findById(uid, CrossAdventureData.class, COLLECTION);
    }

    public void save(CrossAdventureData data) {
        mongo().save(data, COLLECTION);
    }
}
